<!--车辆服务设施更换查询-->
<template>
<div class="public-common">
    <div class="public-title">请选择查询条件</div>
    <el-form :model="form" label-width="120px">
        <el-row>

            <el-col :span="12">
                <el-form-item label="名称">
                    <el-input size="small" v-model="form.ming"></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                 <el-button type="primary" style=" margin-left: 10px;">搜索</el-button>
            </el-col>
        </el-row>
    </el-form>
    <div class="public-title" style="margin-top: 20px;">车辆服务设施更换表列表</div>
    <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
                label="车牌号" fixed="left" prop="a1">
            </el-table-column>
            <el-table-column
                label="所属车队" prop="a2">
            </el-table-column>
            <el-table-column
                label="修改类型" prop="a3">
            </el-table-column>
            <el-table-column
                label="原数据" prop="a4">
            </el-table-column>
            <el-table-column
                label="新数据" prop="a5">
            </el-table-column>
            <el-table-column
                label="补办事项" prop="a6">
            </el-table-column>
            <el-table-column
                label="补办原因" prop="a7">
            </el-table-column>
            <el-table-column
                label="修改人" prop="a8">
            </el-table-column>
            <el-table-column
                label="修改时间" prop="a9">
            </el-table-column>
            <el-table-column
                label="是否注销" prop="a10">
            </el-table-column>
        </el-table>
        <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
        </el-pagination>
</div>
</template>

<script>
export default {
    data(){
        return {
              form:{
                  ming:'',
              },
              tabledata:[
                {
                    a1: '陕A32722',
                    a2: '宝马车队',
                    a3: '暂无',
                    a4: 'data001',
                    a5: 'data002',
                    a6: '暂无',
                    a7: '暂无',
                    a8: '丁建国',
                    a9: '2018-10-10',
                    a10: '已注销',
                },
                {
                    a1: '陕A12341',
                    a2: '奥迪车队',
                    a3: '暂无',
                    a4: 'data015',
                    a5: 'data031',
                    a6: '暂无',
                    a7: '暂无',
                    a8: '于丽国',
                    a9: '2018-10-10',
                    a10: '已注销',
                },
                {
                    a1: '陕A59531',
                    a2: '奔驰车队',
                    a3: '暂无',
                    a4: 'data011',
                    a5: 'data032',
                    a6: '暂无',
                    a7: '暂无',
                    a8: '刘小宁',
                    a9: '2018-10-10',
                    a10: '已注销',
                },
              ],
              page:{
                now:1,
                pagesize:10,
                sizes:[2,10, 20, 50, 100],
                total:0,
                key:''
              },

        }
    },
    methods:{
        search(){
            alert("search")
        },
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>

<style>
  .el-form-item .el-form-item__label{ width: 90px !important;}
  .el-form-item .el-form-item__content{ margin-left: 90px !important;}
.public-common .el-form-item .el-input{ width: 100%;}
.public-title{line-height: 30px;background-color: #deecfd;padding:0 10px;margin-bottom:20px;color: #15428F}

</style>
